import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIconModules from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {resRouter} from './Routes'
import App from './App.vue'

const app = createApp(App);

app.use(ElementPlus,{size:'small',locale:zhCn});
Object.keys(ElIconModules).forEach((key)=>{
    if (key !== 'Menu') {
        app.component(key,ElIconModules[key]);
    } else {
        app.component(key+'Icon',ElIconModules[key])
    }
})

app.use(resRouter);
app.mount('#app');
